package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 红包表
 * @TableName tb_red_envelope
 */
@TableName(value ="tb_red_envelope")
@Data
public class TbRedEnvelope implements Serializable {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Integer redEnvelopeId;

    /**
     * 红包主题
     */
    private String redEnvelopeTheme;

    /**
     * 红包金额
     */
    private Integer price;

    /**
     * 红包发送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTF+8",shape = JsonFormat.Shape.ARRAY)
    private Date sendTime;

    /**
     * 红包总个数
     */
    private Integer num;

    /**
     * 红包剩余金额
     */
    private Integer remainderPrice;

    /**
     * 红包已领取个数
     */
    private Integer collectNum;

    /**
     * 持续时长
     */
    private Integer continueTime;

    /**
     * 红包状态
     */
    private Integer status;

    /**
     * 是否抢到
     */
    private Integer getIt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}